//
//  UIView+Alert.m
//  DreamOf
//
//  Created by 薛小刚 on 2018/8/18.
//  Copyright © 2018年 薛小刚. All rights reserved.
//

#import "UIView+Alert.h"
#import "Toast.h"

@implementation UIView (Alert)

+ (void) xg_toast:(NSString *) string {
    [KeyWindow xg_msgToast:string];
}

- (void)xg_msgToast:(NSString *)msg {
    [self makeToast:msg duration:0.5 position:CSToastPositionBottom];
}

@end
